package com.dbsync.core;

import java.util.Date;
import java.util.List;

/**
 * 任务类
 */
public class Target extends Base{
    // 任务执行时间
    private Date time;
    // 同步表名集合
    private List<String> tables;

    public Target(String url, String username, String password, String driverClassName, List<String> tables, Date time) {
        this.url = url;
        this.username = username;
        this.password = password;
        this.driverClassName = driverClassName;
        this.tables = tables;
        this.time = time;
    }

    public void setTables(List<String> tables) {
        this.tables = tables;
    }

    public List<String> getTables() {
        return tables;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
